package org.f0rb.demo.model.role;


import org.f0rb.core.web.WebModel;

/**
 * Class org.f0rb.demo.model.role description goes here.
 *
 * @author Administrator
 * @version 1.0.0 11-9-29
 */
public class Role extends WebModel<Role> {
    public Integer id;
    public String name;

    @Override
    public String model() {
        return "Role";
    }

    public void fillByModel(Role role) {
        id = role.id;
        name = role.name;
    }

    @Override
    public Role fillInModel(Role role) {
        role.id = id;
        role.name = name;
        return role;
    }
}
